
<%@ taglib prefix="s" uri="/struts-tags"%>

<script type="text/javascript">
  
 	 
</script>

<center>
	<h2>Security List</h2>
</center>

<center>
	<h1>Security Module - Security List</h1>
</center>
 
 
 <form method="POST" action='<s:url action="securityList/exportSecurityListing"/>' method="post"> 
	<input id="downloadExcelBtn" type="submit" class="" value="Excel Download"/>		 
</form>
<div id="message_div"></div>

<br /> 
		
	<s:iterator value="securityListingInfoList" var="group" status="gList">   
		<table border="1" width="100%"> 
			<tr>
				<td colspan="4" class="scListingHeader"  align="center"><h3><font color = "white">Security Group <s:property  value="%{#gList.index + 1 }"/></font></h3></td>
			</tr>
			<tr> 
				<td colspan="2" class="scListingHeader2" align="center"><h4>Group Code : <s:property  value="#group.roleCode"/></h4> </td>
				<td colspan="2" class="scListingHeader2" align="center" ><h4>Group Name: <s:property  value="#group.roleName"/></h4></td>
			</tr>
	
			<tr>
				 <td colspan="4" align="center"><h4><font color="green">Security Group Level</font></h4></td>
			</tr>  
			
			<th colspan="2">Child Group Code</th>
			<th colspan="2">Child Group Name</th> 
			
			<s:iterator value="%{#group.grouplevelList}" var="grouplevel" status="grouplevelListRow">
				
				<s:if test="#grouplevelListRow.odd == true">
					<tr class="scListingList">
				</s:if>
				<s:else>
					<tr>
				</s:else>
					<td colspan="2"><s:property value="#grouplevel.childId" /></td>
					<td colspan="2"><s:property value="#grouplevel.roleName" /></td> 
				</tr>
			</s:iterator> 
			
			<tr>
				<td colspan="4" align="center"><h4><font color="green">Security Access Rights</font></h4></td>
			</tr>
			
			
			<th colspan="2">Module Code</th>
			<th colspan="2">Module Name</th> 
			
			<s:iterator value="%{#group.rolepermissionList}" var="rolepermission" status="rolepermissionRow">
				<s:if test="#rolepermissionRow.odd == true">
					<tr class="scListingList">
				</s:if>
				<s:else>
					<tr>
				</s:else>
					<td colspan="2"><s:property value="#rolepermission.moduleCode" /></td>
					<td colspan="2"><s:property value="#rolepermission.moduleName" /></td>  
				</tr>
			</s:iterator>
			
			<tr>
				<td colspan="4" align="center"><h4><font color="green">Security User List</font></h4></td>
			</tr>
			
			<th colspan="2">User ID</th>
			<th colspan="2">User Name</th> 
			
			<s:iterator value="%{#group.groupuserList}" var="groupuser">
				<tr>
					<td colspan="2"><s:property value="#groupuser.logonid" /></td>
					<td colspan="2"><s:property value="#groupuser.fullname" /></td>  
				</tr>
			</s:iterator>
		</table>
		<br/>
		<br/>
	</s:iterator> 

